<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <title>地址槽[{{ $address_slot->id }}]</title>
    <style>
     table {
         font-family: verdana,arial,sans-serif;
         font-size:11px;
         color:#333333;
         border-width: 1px;
         border-color: #666666;
         border-collapse: collapse;
         width: 100%;
     }
     table th {
         border-width: 1px;
         padding: 8px;
         border-style: solid;
         border-color: #666666;
         background-color: #dedede;
         text-align: center;
     }
     table td {
         border-width: 1px;
         padding: 8px;
         border-style: solid;
         border-color: #666666;
         background-color: #ffffff;
         text-align: center;
     }
    </style>
</head>
<body>
<table>
<tbody>

    <tr>
        <td>表达式</td>
        <td>
            <input disabled type='text' name='rule' value='{{ $address_slot->rule }}'>
        </td>
    </tr>
    <tr>
        <td>顺序</td>
        <td>
            <input disabled type='number' name='number' value='{{ $address_slot->number }}'>
        </td>
    </tr>
    <tr>
        <td>小区</td>
        <td>
            {{ $address_slot->estate->name }}
            <input hidden readonly type='number' name='estate_id' value='{{ $address_slot->estate_id }}'>
        </td>
    </tr>

</tbody>
</table>

<p>地址单位顺序</p>
<table>
<thead>
    <tr>
        <th>ID</th>
        <th>单位名称</th>
        <th>单位次序</th>
    </tr>
</thead>
    @foreach ($address_slot->address_unit_turns as $id => $address_unit_turn)
    <tr>
        <td>{{ $id }}</td>
        <td>
            {{ $address_unit_turn->address_unit->name }}
        </td>
        <td>
            {{ $address_unit_turn->number }}
        </td>
    </tr>
    @endforeach
<tbody>
</tbody>
</table>

</body>
<script>
</script>
</html>
